/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author Comedy Option
 */
public class Room {
    private String name;
    public enum status{
        Dirty, Available, Booked, Occupied;
    }
    private status currentStatus;
    private double cost;
    private int numBeds;
    private Reservation currentOccupants;
    
    public Room(String initName, double initCost, int initBeds){
        name = initName;
        currentStatus = status.Available;
        cost = initCost;
        numBeds = initBeds;
        currentOccupants = null;
    }

    public Reservation getCurrentOccupants() {
        return currentOccupants;
    }

    public void setCurrentOccupants(Reservation currentOccupants) {
        this.currentOccupants = currentOccupants;
        if(currentOccupants == null){
            this.currentStatus = status.Dirty;
        }
        else{
            this.currentStatus = status.Occupied;
        }
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public status getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(status currentStatus) {
        this.currentStatus = currentStatus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumBeds() {
        return numBeds;
    }

    public void setNumBeds(int numBeds) {
        this.numBeds = numBeds;
    }
    
    
}
